package com.yzc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yzc.Details.SecurityUser;
import com.yzc.model.entity.system.SysUser;
import com.yzc.model.vo.system.SysUserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author Yzc
 * @description 针对表【t_user】的数据库操作Mapper
 * @createDate 2024-05-23 14:22:12
 * @Entity com.yzc.pojo.UserBean
 */
@Mapper
public interface UserMapper extends BaseMapper<SysUser> {

    List<SysUserVo> loadaAll();

    @Select("SELECT * FROM t_user WHERE name = #{name} AND is_deleted = 0")
    SecurityUser selectByUsername(String name);
}